﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LibFriesland_Campina_CRM
{
    public class BizSupervisor
    {
        #region Thuoc tinh
        public string sup_charid { get; set; }
        public string name { get; set; }
        public string phone { get; set; }
        public string email { get; set; }
        #endregion

        #region Ham thiet lap
        public BizSupervisor() { }
        public BizSupervisor(string pSup_charid, string pName, string pPhone, string pEmail)
        {
            sup_charid = pSup_charid;
            name = pName;
            phone = pPhone;
            email = pEmail;
        }
        #endregion

        #region Phuong thuc
        //Lay Supervisor theo ID
        public static BizSupervisor getSupbyID(string pSup_charid)
        {
            return DalSupervisor.getSupbyID(pSup_charid);
        }

        //Lay danh sach Supevisor
        public static List<BizSupervisor> getAll()
        {
            return DalSupervisor.getAll();
        }
        #endregion

        #region Dung cho Webservice
        //Lay danh sach NA cua Supervisor
        public static List<BizNA> getNAbySUP(string pSup_charid)
        {
            return DalSupervisor.getNAbySup(pSup_charid);
        }
        #endregion
    }
}
